import request from '@/utils/request'

// 获取协议列表
export function agreementList(params) {
  return request({
    url: '/agreement/config/list',
    method: 'GET',
    params,
  })
}
// 获取协议详情
export function agreementDetail(id) {
  return request({
    url: `/agreement/config/get/${id}`,
    method: 'GET',
  })
}
// 协议编辑
export function agreementEdit(data) {
  return request({
    url: '/agreement/config/edit',
    method: 'PUT',
    data,
  })
}
